/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.usv.comparepic;

import java.util.Comparator;

/**
 *
 * @author Yana
 */
public class ComparatorPointX implements Comparator<Point> {

    @Override
    public int compare(Point p1, Point p2) {
        return p1.getX() - p2.getX();

    }
}
